<form name="frmListIntake" id="frmListIntake">
<table border="1" cellspacing="1px" cellpadding="10px "align="center" width="100%">
    <tr>
        <th width="15">#</th>
        <th>Intake name</th>
    </tr>
    <{foreach name = nameIntake key = keyIntake item = itemIntake from = $arrIntake}>
    <tr>
        <td><{$keyIntake+1}></td>
        <td>
        	<input type="text" size="70" name="intake_name_<{$itemIntake.id}>" id="intake_name_<{$itemIntake.id}>" value="<{$itemIntake.intake_name|utf8_escape_html}>" />
          &nbsp;&nbsp;order sort
          <input type="text" size="5" name="intake_order_<{$itemIntake.id}>" id="intake_order_<{$itemIntake.id}>" value="<{$itemIntake.intake_order|utf8_escape_html}>" />
        	<input type="button" value=" Update " onclick="javascript:updateIntake(this, <{$itemIntake.id}>)" name="btnUpdate<{$itemIntake.id}>" id="btnUpdate<{$itemIntake.id}>" />
        </td>
    </tr>
    <{/foreach}>
</table>
</form>
<form name="frmAddIntake" id="frmAddIntake" onsubmit="return checkFrmAddIntake(this)">
<table border="0" cellpadding="2" cellspacing="1">
	<tr>
  	<td>
    	Intake name: <input type="text" name="intake_name" id="intake_name" value="" size="50" />
      order sort: <input type="text" name="intake_order" id="intake_order" value="0" size="5" />
      <input type="submit" name="btnAddIntake" id="btnAddIntake" value=" Add " />
    </td>
  </tr>
</table>
</form>